<?php /* Smarty version 2.6.16, created on 2013-08-26 11:38:30
         compiled from ../templates/default//modules/myaccount/adduploadimage.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/dashboard.css"><script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/myaccount.js" type="text/javascript"></script>'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
   <!-- MIDDLE CONTAIN GOES HERE -->
<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['cms_left_content'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">            	                
            <?php if ($this->_tpl_vars['msg']):  echo $this->_tpl_vars['msg'];  endif; ?>
            	<section class="title_box">
                    <h4><?php if ($_GET['id1'] != ''): ?> Edit <?php else: ?>Upload<?php endif; ?> Work Photo</h4>
                    <section class="clear"></section>
                </section>
                <form method="post" action="" <?php if ($this->_tpl_vars['userPhotoDetArray']['photo_id'] != ''): ?> name="frmMngWorkPhotoEdit" id="frmMngWorkPhotoEdit" <?php else: ?> name="frmMngWorkPhoto" id="frmMngWorkPhoto" <?php endif; ?> enctype="multipart/form-data">                
                 <input type="hidden" id="photo_id" name="photo_id" value="<?php echo $this->_tpl_vars['userPhotoDetArray']['photo_id']; ?>
"  />

                <section class="profile_wrapp">
                
	                <dl>
                        <dt><label>Title: </label></dt>
                        <dd><input type="text" class="input" name="title" id="title" value="<?php if ($this->_tpl_vars['userPhotoDetArray']['title']):  echo $this->_tpl_vars['userPhotoDetArray']['title'];  else:  echo $_POST['title'];  endif; ?>"></dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>                    
                    
	                <?php if ($this->_tpl_vars['userPhotoDetArray']['image']): ?>
                    <dl>
                    	<dt>Privious Photo: </dt>
                        <dd>
	                        <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=150&amp;height=130&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/tradesmanjobs/<?php echo $this->_tpl_vars['userPhotoDetArray']['image']; ?>
" title="workphoto" alt="workphoto"/>                                
                        </dd>
                    <section class="clear"></section>
                    </dl>
					<?php endif; ?>
                    <section class="clear"></section>
                                        
                    <dl>
                        <dt><label>Work Photo : </label></dt>
                        <dd>
                        	<input type="file" id="image" name="image"  />     
                         </dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>
                    
                    <dl>
                        <dt><label>&nbsp;  </label></dt>
                        <dd>Note: Work photo width should be greater than or equal to 150 and work photo height should be greater than or equal to 130.</dd>
                        <section class="clear"></section>
                    </dl>
  					<section class="clear"></section>
                    
                    <section class="bt_save_wrapp">
                    	<input type="submit" value="Save" name="save_btn" id="save_btn" class="bt_save"/>
                        <input type="button" value="Cancel" name="cancel_btn" id="cancel_btn" class="bt_save" onclick="window.location.href='<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/myuploadedphoto'"/>
                    </section>

                </section>                
                </form>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>